package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.ReportCenterView
import hlhj.fhp.checkpoint.iview.ReportView
import hlhj.fhp.checkpoint.javaBean.ReportCenterBean
import hlhj.fhp.checkpoint.module.ReportCenterModule
import hlhj.fhp.checkpoint.module.ReportModule

/**
 * Created by Never Fear   on 2018\11\22 0022.
Never More....
 */
class ReportCenterPresenter :BasePresenter<ReportCenterModule,ReportCenterView>(), ReportCenterModule.ReportCenterListener {
    override fun reportListResp(reportCenterBean: ReportCenterBean) {
            view?.setReportList(reportCenterBean)
    }
    fun getList(status:Int,page:Int,c: Context){
        module?.getlist(status, page, c)
    }
    override fun createModule() {
        module= ReportCenterModule()
        module.listener=this
    }
}